//
//  UIViewController+YHRouter.h
//  YHRouter
//
//  Created by 98du on 2021/12/1.
//

#import <UIKit/UIKit.h>
#import "YHRouterProtocol.h"
#import "YHRouterParam.h"

NS_ASSUME_NONNULL_BEGIN

typedef void(^YHRouterCallBlock)(YHRouterParam * _Nullable passResult);

@interface UIViewController (YHRouter)<YHRouterProtocol>

/// 控制器操作回调
@property (nonatomic, copy) YHRouterCallBlock yh_callback;


- (UIViewController *(^)(YHRouterParam * params))yh_params;


- (UIViewController *(^)(void))yh_push;
- (UIViewController *(^)(void))yh_pop;
- (UIViewController *(^)(void))yh_present;
- (UIViewController *(^)(void))yh_dismiss;

@end

NS_ASSUME_NONNULL_END
